<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>EasyWeb</title>
    <link rel="stylesheet" href="../static/libs/layui/css/layui.css"/>
    <link rel="stylesheet" href="../static/css/comment.css"/>
</head>
<body>
<div class="layui-layout layui-layout-admin">
    <!--头部-->
    <div class="layui-header">
        <div class="layui-logo"><img src="../static/images/logo.png"/>TITLE</div>
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item"><a href="javascript:;" id="switchNav"><i class="layui-icon">&#xe668;</i></a></li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img id="userHead" src="../static/images/head.jpg" class="layui-nav-img"><span id="userRealName"></span>
                </a>
                <dl class="layui-nav-child">
                    <dd>
                        <a href="javascript:updatePwd();"><i class="layui-icon">&#xe631;</i>修改密码</a>
                    </dd>
                    <dd>
                        <a href="javascript:loginOut();"><i class="layui-icon">&#xe66d;</i>退出登录</a>
                    </dd>
                </dl>
            </li>
        </ul>
    </div>
    <!--侧边栏-->
    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <ul class="layui-nav layui-nav-tree" id="index-nav" lay-filter="index-nav" style="margin-top: 25px;">
            </ul>
        </div>
    </div>
    <!-- 主体部分 -->
    <div class="layui-body" id="main-content" style="padding: 15px;">

    </div>
</div>

<script type="text/javascript" src="../static/libs/jquery/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="../static/libs/q.js"></script>
<script type="text/javascript" src="../static/libs/layui/layui.all.js"></script>
<script type="text/javascript" src="../static/js/admin/comment.js"></script>
<script type="text/javascript" src="../static/js/admin/index.js"></script>
<!-- 侧导航渲染模板 -->
<script id="sideNav" type="text/html">
    {{#  layui.each(d, function(index, item){ }}
    <li class="layui-nav-item">
        {{# if(item.subPermissions == null || item.subPermissions.length === 0){ }}
        <a class="" href="#!{{ item.permissionValue }}"><i class="layui-icon">{{ item.permissionIcon }}</i>&emsp;<span>{{ item.permissionName }}</span></a>
        {{# }else if(item.subPermissions != null && item.subPermissions.length > 0){ }}
        <a class="" href="javascript:openNavItem();"><i class="layui-icon">{{ item.permissionIcon }}</i>&emsp;<span>{{ item.permissionName }}</span></a>
        <dl class="layui-nav-child">
            {{# layui.each(item.subPermissions, function(index, subItem){ }}
            <dd>
                <a class="" href="#!{{ subItem.permissionValue }}")>{{ subItem.permissionName }}</a>
            </dd>
            {{# }); }}
        </dl>
        {{# } }}
    </li>
    {{#  }); }}
</script>
<!-- 修改密码弹窗 -->
<script type="text/html" id="pswModel">
    <form id="pswForm" class="layui-form model-form" action="" method="post">
        <div class="layui-form-item">
            <label class="layui-form-label">新密码</label>
            <div class="layui-input-block">
                <input name="newPsw" placeholder="请输入新密码" type="password" class="layui-input" maxlength="12"
                       lay-verify="required|pass" required/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">确认密码</label>
            <div class="layui-input-block">
                <input name="newPsw2" placeholder="请再次输入新密码" type="password" class="layui-input" maxlength="12"
                       lay-verify="required|psw2" required/>
            </div>
        </div>
        <div class="layui-form-item model-form-footer">
            <button class="layui-btn layui-btn-primary" type="button" id="pswCancel">取消</button>
            <button class="layui-btn" lay-filter="pswSubmit" lay-submit>修改</button>
        </div>
    </form>
</script>
</body>
</html>